ReactiveViewHost class¶
Defined in
Namespace: ReactiveUI
Assembly: ReactiveUI.dll
Full name: ReactiveUI.ReactiveViewHost<T>
Modifiers: public abstract
Summary¶
A class that implements the Android ViewHolder pattern with a ViewModel.
Use it along with GetViewHost.
Applies to
net10.0-android36.0, net9.0-android35.0
Class hierarchy
classDiagram
class ReactiveViewHost~T~
class LayoutViewHost
LayoutViewHost <|-- ReactiveViewHost~T~
class IViewFor~TViewModel~ {
<>
}
IViewFor~TViewModel~ <|.. ReactiveViewHost~T~
class IViewFor {
<>
}
IViewFor <|.. ReactiveViewHost~T~
class IActivatableView {
<>
}
IActivatableView <|.. ReactiveViewHost~T~
class IReactiveNotifyPropertyChanged~ReactiveViewHost~TViewModel~~ {
<>
}
IReactiveNotifyPropertyChanged~ReactiveViewHost~TViewModel~~ <|.. ReactiveViewHost~T~
class IReactiveObject {
<>
}
IReactiveObject <|.. ReactiveViewHost~T~
class INotifyPropertyChanged {
<>
}
INotifyPropertyChanged <|.. ReactiveViewHost~T~
class INotifyPropertyChanging {
<>
}
INotifyPropertyChanging <|.. ReactiveViewHost~T~
class IEnableLogger {
<>
}
IEnableLogger <|.. ReactiveViewHost~T~
Inherits from: LayoutViewHost
Implements: IViewFor
Remarks¶
Trimming/AOT: Prefer constructors that do not enable legacy auto-wireup. These paths avoid reflection and do not allocate property metadata.
Compatibility: A legacy constructor is provided that enables reflection-based wiring and initializes allPublicProperties for older infrastructure.
Constructors¶
| Name | Summary |
|---|---|
| .ctor | Initializes a new instance of the [ReactiveViewHost](# class. |
Properties¶
| Name | Summary |
|---|---|
| ViewModel | Gets or sets the strongly typed view model. Override this property to integrate with the platform's binding system. |
| Changing | Gets an observable that fires before a property is about to be changed. Note that this should not fire duplicate change notifications if a property is set to the same... |
| Changed | Gets an Observable that fires after a property has changed. Note that this should not fire duplicate change notifications if a property is set to the same value multiple... |
| ThrownExceptions | Gets an observable of exceptions thrown during reactive operations on this instance. |
Fields¶
| Name | Summary |
|---|---|
| allPublicProperties | All public properties. |
Methods¶
| Name | Summary |
|---|---|
| SuppressChangeNotifications | When this method is called, an object will not fire change notifications (neither traditional nor observable) until the return value is disposed. |
| AreChangeNotificationsEnabled | Gets a value indicating whether change notifications are enabled. |
Events¶
| Name | Summary |
|---|---|
| PropertyChanged | |
| PropertyChanging |
Inherited members
ReactiveUI.LayoutViewHost.#ctorReactiveUI.LayoutViewHost.#ctor(Android.Content.Context,System.Int32,Android.Views.ViewGroup,System.Boolean)ReactiveUI.LayoutViewHost.#ctor(Android.Content.Context,System.Int32,Android.Views.ViewGroup,System.Boolean,System.Action{ReactiveUI.LayoutViewHost,Android.Views.View})ReactiveUI.LayoutViewHost.#ctor(Android.Content.Context,System.Int32,Android.Views.ViewGroup,System.Boolean,System.Boolean,ReactiveUI.ControlFetcherMixin.ResolveStrategy)ReactiveUI.LayoutViewHost.op_Implicit(ReactiveUI.LayoutViewHost)~Android.Views.ViewReactiveUI.LayoutViewHost.ViewSystem.Object.Equals(System.Object)System.Object.Equals(System.Object,System.Object)System.Object.GetHashCodeSystem.Object.GetTypeSystem.Object.MemberwiseCloneSystem.Object.ReferenceEquals(System.Object,System.Object)System.Object.ToString